<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.1//EN"
"http://struts.apache.org/dtds/struts-2.1.dtd">
<struts>
	<constant name="struts.custom.i18n.resources" value="globalMessages"></constant>
	<package name="default" extends="json-default">
		<action name="register" class="register">
			<result name="success">/index_top.jsp</result>
			<result name="error">/register.jsp</result>
		</action>
		<action name="login" class="login">
			<result name="success">/index_top.jsp</result>
			<result name="error">/login.jsp</result>
		</action>
		<action name="getQandaList" class="getQandaList">
			<result type="json">
				<param name="root">qandaList</param>
			</result>
		</action>
		<action name="getUserList" class="getUserList">
			<result type="json">
				<param name="root">userList</param>
			</result>
		</action>
		<action name="addQuest" class="addQuest">
			<result type="json">
				<param name="root">response</param>
			</result>
		</action>
		<action name="editUser" class="editUser">
			<result name="success">/editUser.jsp</result>
		</action>
 
		<action name="updateUser" class="updateUser">
			<result name="success">/admin.jsp</result>
		</action>
	</package>
</struts>